package test;


import java.io.*;

import entity.Assignment;
import exception.SubmissionException;

public class Darwin {

	private Assignment assignment;

	public String submitAssignment(String student, String subject,
			String assFile) throws SubmissionException {

		assignment = new Assignment(student, subject);
		return assignment.Submit(assFile);
		/*
		if (assignment.Submit(assFile) != "" && !assignment.Submit(assFile).equals("")) {
			return true;
		} else {
			return false;
		} */
	}
	
	public String viewStatus(String student) {
		
		assignment = new Assignment(student, "HIT3309");

		return assignment.CheckStatus();
	}
}
